/* buttons module */
.button{
	display: inline-block;

	box-sizing: border-box;
	min-width: 30px;
	min-height: 30px;
	line-height: 28px;
	padding: 0;

	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-appearance: none;

	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
	text-decoration: none;

	background-color: #ccc;
	color: #fff !important;
	border: 1px solid #b6b6b6;

	@include single-transition(background, .2s);

	//hover effects
	&:hover,
	&:focus,
	&:active{
		color: #fff;
		@include single-transition(background, .2s);
		outline: 0;
	}
	&:active{
		@include tranlate2d(0, 1px);
	}
	//不可用的
	&[disabled]{
		cursor: not-allowed;
	}
	//带文字的
	&.large{
		padding: 0 $btn-padding;
	}
	&.call-out{
		min-width: 95px;
		min-height: 95px;
		line-height: 93px;
		margin-bottom: 5px;
	}
	//关闭窗口
	&.bar-close.close{
		margin-top: -2px;
		background-color: transparent;
		border-color: transparent;
	}

	//button with different background
	&.primary{
		border-color: darken($brand-primary, 7%);
		&:hover{
			background-color: darken($brand-primary, 7%);
		}
		&[disabled]{
			background-color: mix($brand-primary, #fff, 49%);
		}
	}

	&.secondary{
		border-color: darken($brand-info, 7%);
		&:hover{
			background-color: darken($brand-info, 7%);
		}
		&[disabled]{
			background-color: mix($brand-info, #fff, 49%);
		}
	}

	&.success{
		border-color: darken($brand-success, 7%);
		&:hover{
			background-color: darken($brand-success, 7%);
		}
		&[disabled]{
			background-color: mix($brand-success, #fff, 49%);
		}
	}

	&.warning{
		border-color: darken($brand-warning, 7%);
		&:hover{
			background-color: darken($brand-warning, 7%);
		}
		&[disabled]{
			background-color: mix($brand-warning, #fff, 49%);
		}
	}

	&.alert{
		border-color: darken($brand-danger, 7%);
		&:hover{
			background-color: darken($brand-danger, 7%);
		}
		&[disabled]{
			background-color: mix($brand-danger, #fff, 49%);
		}
	}
}